this.icon = new AppIcon(app, iconParams);
this.actor.set_child(this.icon.actor);
+ this.actor.connect('button-press-event', Lang.bind(this, this._onButtonPress));
this.actor.connect('clicked', Lang.bind(this, this._onClicked));
this._menu = null;
Main.overview.endItemDrag(this);
}));
- this.actor.connect('button-press-event', Lang.bind(this, this._onButtonPress));
this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
this._menuTimeoutId = 0;
Lang.bind(this, function() {
this.popupMenu();
}));
+ } else if (button == 3) {
+ this.popupMenu();
+ return true;
}
+ return false;
},
_onClicked: function(actor, event) {
this.app.open_new_window();
Main.overview.hide();
}
- } else if (button == 3) {
- this.popupMenu();
}
return false;
},